package io.renren.modules.pms.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.pms.dao.GoodsStockDao;
import io.renren.modules.pms.entity.GoodsStockEntity;
import io.renren.modules.pms.service.GoodsStockService;


@Service("goodsStockService")
public class GoodsStockServiceImpl extends ServiceImpl<GoodsStockDao, GoodsStockEntity> implements GoodsStockService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GoodsStockEntity> page = this.page(
                new Query<GoodsStockEntity>().getPage(params),
                new QueryWrapper<GoodsStockEntity>()
        );

        return new PageUtils(page);
    }

}
